package com.itheima.health.dao;


import com.itheima.health.pojo.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface UserRoleMapper extends Mapper<UserRole> {
    @Select("select t1.role_id from t_user_role t1 where user_id = #{userId}")
    Map<String, Integer> findUserRoleByUserid(@Param("userId") Integer userId);
}
